Dynamic Motor Drive: Optimizing Electric Motor Controls